import {gql} from "@apollo/client";

export const GET_USERS = gql`
query MyQuery {
  user {
    users {
      createTime
      id
      nickname
      status
      updateTime
      username
      roles {
        name
        id
        createTime
        updateTime
        roleId
        userId
      }
      avatarAddr
      authorities {
        authorityId
        createTime
        id
        name
        updateTime
        userId
      }
    }
  }
}
    `;

export const UPDATE_USER_STATUS = gql`
mutation MyMutation($status: String, $userId: String) {
  user {
    updateUserStatus(status: $status, userId: $userId)
  }
}
`;